﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using Truron.Purchase.Model.RemoteModel;
using Truron.Purchase.Utility;

namespace Truron.Purchase.Model
{
	[Serializable]
	[PrimaryKey("Id")]
	[Table("Purchase_DataSource")]
	public class Purchase_DataSource : BaseData
	{
		public string Code { get; set; }
		public string Name { get; set; }
		public int ParentId { get; set; }
		public string Remark { get; set; }
		public int Sort { get; set; }
		public int SourceType { get; set; }
		public void Create(UserCache userInfo)
		{
			this.CreateUser = userInfo.UserId;
			this.CreateTime = DateTime.Now;
		}
		public void Modify(UserCache userInfo)
		{
			this.LastUpdateUser = userInfo.UserId;
			this.LastUpdateTime = DateTime.Now;
		}
	}


}
